This page last changed on Mar 20, 2008.
How To Use Java to Make Excel Data Available to Data Services
This topic describes the steps needed to create a Java project that can consume Excel data.
Step 1 - Create a new workspaceCreate a new server in the workspace. Step 2 - Create a Java project named excel_jcom
Step 3 - Enable XMLBeans builder for excel_jcomRight-click on the excel_jcom project > Properties > XmlBeans > Enable XmlBeans Builder Step 4 - Create a new packageCreate a new package named: com.bea.dsp.wrappers.excel Step 5 - Import the packageImport Excel_JCOM.java into the new package. (Ignore any import errors that may appear.)
Step 6 - Run the com2java function -output location: <workspace>/excel_jcom/src/com/bea/dsp/wrappers/excel/jcom - output to package: -output to package:
com.bea.dsp.wrappers.excel.jcom
- input your Excel executable such as Start menu > Program Files > Microsoft Office > OFFICE11 > excel.exe Step 7 - Import the Excel schema file into the src directoryStep 8 - Build your projectYour project should build automatically, all errors should disappear. Step 9 - Create an ALDSP dataspace projectCreate an ALDSP dataspace project. You can use the menu option: Properties > Targets > <your aldsp server> Step 10 - Export the excel_jcom project
Ignore any warning messages. Step 11 - Create a folder to contain the Excel data
Step 12 - Open Excel
Notes
|
Document generated by Confluence on Apr 28, 2008 16:27 |